package com.fanyouzhao.ehome.service;

import com.fanyouzhao.ehome.entity.Admin;

/**
 * Admin的业务层操作
*@author: fanyouzhao
*@Date: 15:00 2021/5/8
*/
public interface AdminService {

	/**
	 * 登录方法
	 *
	 * @param phone
	 * @return
	 * @throws Exception
	 */
	Admin login(String phone, String password) throws Exception;

	/**
	 * 修改数据
	 *
	 * @param admin
	 * @return
	 * @throws Exception
	 */
	Boolean update(Integer id,Admin admin) throws Exception;

	/**
	 * 修改密码
	 *
	 * @param admin
	 * @return
	 * @throws Exception
	 */
	Boolean updatePassword(Admin admin) throws Exception;
}
